<template>
  <el-table-column label="操作">
    <template slot-scope="scope">
      <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
      <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
    </template>
  </el-table-column>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    handleEdit(index, row) {
      console.log("edit", index, row);
    },
    handleDelete(index, row) {
      console.log("del", index, row);
    }
  }
};
</script>